package cn.ly.checkin.servlet;

import java.io.IOException;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;

import javax.servlet.http.Cookie;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public class GetCookieServlet extends HttpServlet {

	public void service(HttpServletRequest req,HttpServletResponse resp){
		Cookie[] cookie=req.getCookies();
		for(Cookie ck:cookie){
			System.out.println(ck.getName()+"-=-"+ck.getValue());
		}
	}
}
